package com.taobao.demo.user.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 类描述：用户表
 * 
 * @author xhy
 * @date 2025/10/16 18:03
 * @version 1.0.0
 */
@Data
@TableName("tb_user")
public class User {
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    private Long id;

    private String username;
    private String password; // 存储加密后密码
    private String nickname;
    private String phone;
    private String avatar;
    private String admin;
    private String role;
    private LocalDateTime createTime;
    private LocalDateTime updateTime;
}
